<%@page import="service.UserService"%>
<%@page import="entities.UserEntity"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	UserEntity user = new UserEntity();
%>
<!DOCTYPE HTML>
<html>
<head>

<title></title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/GlobalSet.css">
<link rel="stylesheet" type="text/css" href="css/header.css">

</head>

<body>
	<script type="text/javascript">
		function logout() {
			$.ajax({
				title : '登录',
				lock : true,
				content : 'url:login.jsp',
				max : false,
				min : false
			});
		}
	</script>
	<div class="topPanel">
		<span class="siteName"> <a href="index.jsp" class="indexSite"
			title="我的毕业设计"><span></span>华侨大学学生街</a> <a target="_blank"
			href="http://code.google.com/p/student-street/downloads/detail?name=StudentStreet.apk&can=2&q=#makechanges"
			class="phoneSite"><span></span>Android客户端 </a> </span> <span
			id="LoginColumn" class="loginColumn"> <%
 	String userName = (String) session.getAttribute("userName");

 	if (userName == null) {
 %>
			<ul class="defaultMenu">
				<li><a href="logReg.jsp?action=registe">立即注册</a>
				</li>
				<li><a href="logReg.jsp?action=login">登录</a>
				</li>
			</ul> <%
 	} else {
 		user = UserService.getUser(userName);
 %>
			<ul class="userCenterLink" id="UserCenterLink">
				<li><a class="signOff" href="servlet/LogoutServlet">[退出]</a></li>
				<li><a id="TopSetLink"><span></span> </a>
					<ul>
						<li><a href="seller.jsp">商家列表</a>
						</li>
						<li><a href="shopCart.jsp">购&nbsp;物&nbsp;车&nbsp;</a>
						</li>
						<li><a href="user/userInfo.jsp?action=userInfo">我的资料</a>
						</li>
						<li><a href="user/">个人中心</a>
						</li>
					</ul></li>
				<!-- <li><a title="管理账号" id="LoginUserEmail" class="loginUserEmail"
					href="http://www.aiizhai.com/UserCenter/UserPrivateMsg.aspx">ydi49@163.com</a>
				</li> -->
				<li><a title="管理账号" id="LoginUserNickName"
					class="loginUserNickName" href="user/"><%=userName%></a>
				</li>
				<li><a title="" id="LoginUserFigure" class="loginUserFigure"
					href="user/"><img src="<%=user.getHeadImgUrl()%>" alt="头像" /> </a>
				</li>
			</ul> <%
 	}
 %> </span>
	</div>
	<!--shortcut end-->
</body>
</html>
